package xiaodou.core.WeiboData.events
{
	public class WeiboErrorDesc
	{
		public static function GetErrorDescByCode(code:int):String
		{
			var errorMsg:String;
			switch(code)
			{
				case 10001:
					errorMsg = "新浪服务器系统错误！请稍后再试！";
					break;
				
				case 10009:
					errorMsg = "新浪服务器系统繁忙！请稍后再试！";
					break;
				
				case 10010:
					errorMsg = "任务超时！请稍后再试！";
					break;
				
				case 20016	:
					errorMsg = "发微博太多啦，休息一会儿吧！";
					break;
				
				case 21331:
					errorMsg = "服务暂时无法访问";
					break;
				
				case 21327:
					errorMsg = "授权已经过期，请重新授权！";
					break;
				
				case 21321:
					errorMsg = "微博接口调用过于频繁，已达新浪限制上线，请明天再试！"
					break;
				
				case 21332:
					errorMsg = "错误的Token，请重新给账号授权！";
					break;
				default:
					errorMsg = ""
					break;
			}
			
			return errorMsg;
		}
	}
}